package com.cn.system.login.service.impl;

import java.util.Map;

import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import com.cn.system.common.service.impl.BaseRepository;
import com.cn.system.login.model.User;
import com.cn.system.login.service.UserService;


@Repository
@Service("userService")
public class UserServiceImpl extends BaseRepository<User> implements UserService{

	@Override
	public Map findByAccounts(String account) {
		// TODO Auto-generated method stub
		String sql = "SELECT * FROM SYSTEM_USER WHERE ACCOUNTS = ?";
		return this.queryForMap(sql,account);
	}

	@Override
	public Map queryUserForMap() {
		// TODO Auto-generated method stub
		String sql = "SELECT * FROM SYSTEM_USER WHERE ID =?";
		return this.queryForMap(sql,1);
	}

	

}
